package com.xmut.xmutbackend.controller;

import com.xmut.xmutbackend.entity.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @GetMapping("/index")
    public Result<String> index() {
        return Result.success("欢迎访问系统首页");
    }
}
